package com.specdot.kraster.math;

public class Dir3 extends Vector4 {
	public Dir3(float x, float y, float z) {
		super(x, y, z, 0);
	}
	
	public Dir3 copy() {
		return new Dir3(x, y, z);
	}
	
	public Dir3 normalized() {
		super.normalized();
		
		return this;
	}
	
	public Dir3 cross(Dir3 rhs) {
		return new Dir3(y * rhs.z - rhs.y * z,
						rhs.x * z - rhs.z * x,
						x * rhs.y - rhs.x * y);
	}
}
